﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SistemaBastanteo.Dominio.Bastanteo>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	Consultar Poderes
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <form id = "frmSearch" action="/ConsultarPoder/Search" method="post">
        Ruc de Cliente : <input type="text" name="Ruc" size="15" /> 
        <input type="submit" value="Buscar" />
    </form>
     <% if (ViewData["Codigo"] != null)
        { %>
    Codigo      : <%: ViewData["Codigo"]%>
    Ruc         : <%: ViewData["Ruc"]%>
    Razon Social: <%: ViewData["RazonSocial"]%>
        <% Html.EnableClientValidation(); %>
        <form id = "frmSearch2" action="/ConsultarPoder/Search2" method="post">
        <%: Html.ValidationSummary(true)%>
                <%: Html.Hidden("Codigo", ViewData["Codigo"])%>
                <%: Html.Hidden("Ruc", ViewData["Ruc"])%>
          <div class="editor-label">
                Representante
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoRepresentante", (IEnumerable<SelectListItem>)TempData["representantes"])%>
            </div>

            <div class="editor-label">
                Tipo de Intervención
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoTipo", (IEnumerable<SelectListItem>)TempData["tipoIntervencion"])%>
            </div>
            <div class="editor-label">
                Grupo de Bastanteo
            </div>
            <div class="editor-field">
                <%: Html.DropDownList("CodigoGrupo", (IEnumerable<SelectListItem>)TempData["grupos"])%>
            </div>

        <input type="submit" value="Consultar Poder" />
    </form>

    
            <%} %>
    

</asp:Content>
